import { axios } from '@/utils/request'

/**
 * 查询指标权重配置
 *
 * @author cdx
 * @date 2022-10-17 10:22:44
 */
export function indexTypeWeightPage (parameter) {
  return axios({
    url: '/indexTypeWeight/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 指标权重配置列表
 *
 * @author cdx
 * @date 2022-10-17 10:22:44
 */
export function indexTypeWeightList (parameter) {
  return axios({
    url: '/indexTypeWeight/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加指标权重配置
 *
 * @author cdx
 * @date 2022-10-17 10:22:44
 */
export function indexTypeWeightAdd (parameter) {
  return axios({
    url: '/indexTypeWeight/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑指标权重配置
 *
 * @author cdx
 * @date 2022-10-17 10:22:44
 */
export function indexTypeWeightEdit (parameter) {
  return axios({
    url: '/indexTypeWeight/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除指标权重配置
 *
 * @author cdx
 * @date 2022-10-17 10:22:44
 */
export function indexTypeWeightDelete (parameter) {
  return axios({
    url: '/indexTypeWeight/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出指标权重配置
 *
 * @author cdx
 * @date 2022-10-17 10:22:44
 */
export function indexTypeWeightExport (parameter) {
  return axios({
    url: '/indexTypeWeight/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
